<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			div{
				width:700px;
				height:500px;
				background:#eee;
				padding-top: 30px;
				margin:30px auto;
				/* 上下边距为0,左右自动居中 */
			}
			li{
				list-style:none;
				width:200px;
				height:200px;
				border:5px solid goldenrod;
				margin:10px;
				display: inline-block;
			}
			#n1{
				background: url(./生肖.jpg) 0 0 no-repeat;
				/* background-image: url();
				background-position: 0 0;
				background-repeat: no-repeat;
				这三行与第一行一致，可以合并*/
			}
			#n2{
				background: url(./生肖.jpg) -200px 0 no-repeat;
			}
			#n3{
				background: url(./生肖.jpg) -220px -170px no-repeat;
			}
		</style>
	</head>
	<body>
		<div>
			<ul>
				<li id="n1"></li>
				<li id="n2"></li>
				<li id="n3"></li>
				<li id="n4"></li>
				<li id="n5"></li>
				<li id="n6"></li>
			</ul>
		</div>
	</body>
</html>
